package com.im.app.service;

import com.im.app.model.ChatLogs;

import java.util.List;


public interface ChatLogsService {

    int insert(ChatLogs chatLogs);

    int cancelChatLog(String opUserId,String msgId);

    int clearChatLog(String opUserId,String userId);

    int updateIsRead(String opUserId,String userId);

    int updateIsReadById(ChatLogs chatLogs);

    int updateMsg(String userId,String nickName,String avatar);


    List<ChatLogs> getChatLogsList(String opUserId, String userId, Long sendTime);
    ChatLogs getChatLogsById(String msgId);
    List<ChatLogs> getGroupHistoryMessage(String groupId,Long sendTime);
    List<ChatLogs> selectChatLogsList(ChatLogs chatLogs);
    int getTodayChatLogs(String userId);

}

